<template>
  <Table :isShowPagination="false" :data="orderList">
    <el-table-column label="流水单号" prop="name"></el-table-column>
    <el-table-column label="结算价" prop="totalPrice"></el-table-column>
    <el-table-column label="结算内容" prop="content"></el-table-column>
    <el-table-column label="成交时间" prop="time"></el-table-column>
  </Table>
</template>

<script setup>
import Table from '@renderer/components/table/Table.vue'
import { useUserDB } from '@renderer/database/useUserDB'
const { getCurrentUser } = useUserDB()
const orderList = ref([])
onMounted(async () => {
  const user = await getCurrentUser()
  orderList.value = user?.orderList || []
  console.log(orderList.value)
})
</script>

<style lang="scss" scoped></style>
